import java.rmi.RemoteException;
import java.rmi.Remote;


public interface LockServiceInterface extends Remote {

	/*Need to send requester so that only the requester can release the lock*/
	public void printLocks() throws RemoteException;
	public boolean requestRead(String filepath) throws RemoteException;
	public boolean requestLocalRead(String filepath) throws RemoteException;
	
	public boolean releaseRead(String filepath) throws RemoteException;
	public boolean releaseLocalRead(String filepath) throws RemoteException;
	
	public boolean requestWrite(String filepath) throws RemoteException;
	public boolean requestLocalWrite(String filepath) throws RemoteException;
	
	public boolean releaseWrite(String filepath) throws RemoteException;
	public boolean releaseLocalWrite(String filepath) throws RemoteException;
}